﻿using System;
using System.Data.Linq.Mapping;

namespace DataEntities
{
    [Table(Name = "dbo.Setting")]
    public partial class Setting : Entity
    {
        private int _id;

        private string _pwd;

        private string _pwdBackup;

        private bool _bShowCQ;

        private bool _bShowDQ;

        private bool _bShowYD;

        private bool _bShowDate;

        private bool _bShowMsg;

        private bool _bShowCaption;

        private bool _bRembPwd;

        private bool _bRegi;

        private string _caption;

        private DateTime _dtRegidate;

        private string _prodCode;

        [Column(Storage = "_id", AutoSync = AutoSync.OnInsert, DbType = "Int NOT NULL IDENTITY", IsPrimaryKey = true, IsDbGenerated = true)]
        public int Id
        {
            get
            {
                return this._id;
            }
            set
            {
                if ((this._id != value))
                {
                    this.SendPropertyChanging("Id");
                    this._id = value;
                    this.SendPropertyChanged("Id", value);
                }
            }
        }

        [Column(Storage = "_pwd", DbType = "VarChar(128)")]
        public string Pwd
        {
            get
            {
                return this._pwd;
            }
            set
            {
                if ((this._pwd != value))
                {
                    this.SendPropertyChanging("Pwd");
                    this._pwd = value;
                    this.SendPropertyChanged("Pwd", value);
                }
            }
        }

        [Column(Storage = "_pwdBackup", DbType = "VarChar(128)")]
        public string PwdBackup
        {
            get
            {
                return this._pwdBackup;
            }
            set
            {
                if ((this._pwdBackup != value))
                {
                    this.SendPropertyChanging("PwdBackup");
                    this._pwdBackup = value;
                    this.SendPropertyChanged("PwdBackup", value);
                }
            }
        }

        [Column(Storage = "_bShowCQ", DbType = "Bit")]
        public bool bShowCQ
        {
            get
            {
                return this._bShowCQ;
            }
            set
            {
                if ((this._bShowCQ != value))
                {
                    this.SendPropertyChanging("bShowCQ");
                    this._bShowCQ = value;
                    this.SendPropertyChanged("bShowCQ",value);
                }
            }
        }

        [Column(Storage = "_bShowDQ", DbType = "Bit")]
        public bool bShowDQ
        {
            get
            {
                return this._bShowDQ;
            }
            set
            {
                if ((this._bShowDQ != value))
                {
                    this.SendPropertyChanging("bShowDQ");
                    this._bShowDQ = value;
                    this.SendPropertyChanged("bShowDQ",value);
                }
            }
        }

        [Column(Storage = "_bShowYD", DbType = "Bit")]
        public bool bShowYD
        {
            get
            {
                return this._bShowYD;
            }
            set
            {
                if ((this._bShowYD != value))
                {
                    this.SendPropertyChanging("bShowYD");
                    this._bShowYD = value;
                    this.SendPropertyChanged("bShowYD",value);
                }
            }
        }

        [Column(Storage = "_bShowDate", DbType = "Bit")]
        public bool bShowDate
        {
            get
            {
                return this._bShowDate;
            }
            set
            {
                if ((this._bShowDate != value))
                {
                    this.SendPropertyChanging("bShowDate");
                    this._bShowDate = value;
                    this.SendPropertyChanged("bShowDate",value);
                }
            }
        }

        [Column(Storage = "_bShowMsg", DbType = "Bit")]
        public bool bShowMsg
        {
            get
            {
                return this._bShowMsg;
            }
            set
            {
                if ((this._bShowMsg != value))
                {
                    this.SendPropertyChanging("bShowMsg");
                    this._bShowMsg = value;
                    this.SendPropertyChanged("bShowMsg",value);
                }
            }
        }

        [Column(Storage = "_bShowCaption", DbType = "Bit")]
        public bool bShowCaption
        {
            get
            {
                return this._bShowCaption;
            }
            set
            {
                if ((this._bShowCaption != value))
                {
                    this.SendPropertyChanging("bShowCaption");
                    this._bShowCaption = value;
                    this.SendPropertyChanged("bShowCaption",value);
                }
            }
        }

        [Column(Storage = "_bRembPwd", DbType = "Bit")]
        public bool bRembPwd
        {
            get
            {
                return this._bRembPwd;
            }
            set
            {
                if ((this._bRembPwd != value))
                {
                    this.SendPropertyChanging("bRembPwd");
                    this._bRembPwd = value;
                    this.SendPropertyChanged("bRembPwd",value);
                }
            }
        }

        [Column(Storage = "_bRegi", DbType = "Bit")]
        public bool bRegi
        {
            get
            {
                return this._bRegi;
            }
            set
            {
                if ((this._bRegi != value))
                {
                    this.SendPropertyChanging("bRegi");
                    this._bRegi = value;
                    this.SendPropertyChanged("bRegi",value);
                }
            }
        }

        [Column(Storage = "_caption", DbType = "VarChar(30)")]
        public string Caption
        {
            get
            {
                return this._caption;
            }
            set
            {
                if ((this._caption != value))
                {
                    this.SendPropertyChanging("Caption");
                    this._caption = value;
                    this.SendPropertyChanged("Caption", value);
                }
            }
        }

        [Column(Storage = "_dtRegidate", DbType = "DateTime")]
        public DateTime dtRegidate
        {
            get
            {
                return this._dtRegidate;
            }
            set
            {
                if ((this._dtRegidate != value))
                {
                    this.SendPropertyChanging("dtRegidate");
                    this._dtRegidate = value;
                    this.SendPropertyChanged("dtRegidate",value);
                }
            }
        }

        [Column(Storage = "_prodCode", DbType = "VarChar(50)")]
        public string ProdCode
        {
            get
            {
                return this._prodCode;
            }
            set
            {
                if ((this._prodCode != value))
                {
                    this.SendPropertyChanging("ProdCode");
                    this._prodCode = value;
                    this.SendPropertyChanged("ProdCode",value);
                }
            }
        }
    }
	
}
